package com.github.llyb120.workflow.excep;

public class WorkflowException extends RuntimeException{

    public static final String WORKFLOW_NOT_FOUND = "查询找不到流程【%s】,请联系管理员";
    public static final String START_NODE_NOT_FOUND = "查询找不到开始节点,请联系管理员";
    public static final String NEXT_NODE_NOT_FOUND = "查询不到下个可用的节点，请联系管理员";
    public static final String LEAF_MISMATCH = "该节点无法提交";

    public WorkflowException(String message, Object ...args){
        super(String.format(message, args));
    }
}
